package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-01-06
 */
public class Goods extends Model<Goods> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 是否启用序列号功能
     */
    private Boolean sn;

    private String no;

    /**
     * 名称
     */
    private String name;

    /**
     * 商品分类
     */
    private String typeId;

    /**
     * 规格(如红色长款)
     */
    private String norms;

    /**
     * 商品图片
     */
    private String image;

    /**
     * 状态 1正常 2停用
     */
    private Integer status;

    private Date time;

    /**
     * 备注
     */
    private String remark;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Boolean getSn() {
        return sn;
    }

    public void setSn(Boolean sn) {
        this.sn = sn;
    }
    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
    public String getNorms() {
        return norms;
    }

    public void setNorms(String norms) {
        this.norms = norms;
    }
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Goods{" +
            "id=" + id +
            ", sn=" + sn +
            ", no=" + no +
            ", name=" + name +
            ", typeId=" + typeId +
            ", norms=" + norms +
            ", image=" + image +
            ", status=" + status +
            ", time=" + time +
            ", remark=" + remark +
            ", companyId=" + companyId +
        "}";
    }
}
